/**
 * Created by zzy on 2017/9/26.
 */
import React, {Component} from 'react';
import {
    Text,
    View,
    TouchableOpacity,
    Image,
    StyleSheet,
    PixelRatio,
    Dimensions,
    FlatList,
    InteractionManager
} from 'react-native';
import MyTicketCell from './MyTicketCell'
import ItemCell from '../../js/component/ItemCell'

export default class MyTicketDetail extends Component{
    static navigationOptions = {
        title: '水票',
    };
    constructor(props){
        super(props);
        this.tiket=this.props.navigation.state.params.tiket;
    }
    render(){
        let count='可用水票'+this.tiket.count+'张';
        return <View>
            <MyTicketCell data={this.tiket}>
            </MyTicketCell>
            <View style={{marginTop:20}}>
                <ItemCell name={'订水'} desc={count} callback={()=>{this.props.navigation.navigate('ConfirmOrder', {userTicketId:this.tiket.userTicketId});
                }}/>
            </View>
        </View>
    }
}